﻿package{
	public class FillDirection{
		private var fillDirection:Array;
		public function FillDirection(){
			fillDirection=new Array();
			}
		public function getFillDirection(ret:String):Array{//获取填充方向：0正向横1正向竖2反向横3反向竖
			switch(ret){
				case "1":;//横
					this.fillDirection.push('0');
					break;

				case "2"://ret="竖";
					this.fillDirection.push('1');
					break;
				
					case "3"://撇
						this.fillDirection.push('1');
						break;
						
					case "c":
						//ret="撇折";						
						this.fillDirection=[1,0];
						break;
						
						//ret="捺";
					case "4":
						this.fillDirection=[1];
						break; 
						
						//ret="斜钩";
					case "h":
						this.fillDirection=[1,3];
						break;
							
						//ret="提";
					case "5":
						this.fillDirection=[0];
						break;
						
					case "7"://点
						this.fillDirection=[1];
						break;
						//ret="横折";
					case "a":
						this.fillDirection=[0,1];
						break;
						//ret="横撇";
					case "d":
						this.fillDirection=[0,1];
						//this.fillDirection=[0];
						break;
						
						//ret="横折横";
					case "j":
						this.fillDirection=[0,1,0];
						break;
						//ret="竖横";
					case "b":
						this.fillDirection=[1,0];
						break;
						//ret="竖提";
					case "i":
						this.fillDirection=[1,0];
						break;
						//ret="竖钩";
					case "g":
						this.fillDirection=[1,2];
						break;
						//ret="竖折折勾";
					case "r":
						this.fillDirection=[1,0,1,2];
						break;
						//ret="横折横折勾";
					case "q":
						this.fillDirection=[0,1,0,1,2];
						break;
					case "m":
						this.fillDirection=[1,0,3];
						//ret="竖弯勾";
						break;
						//ret="竖折竖";
					case "w":
						this.fillDirection=[1,0,1];
						break;
						//ret="撇捺";
					case "e":
						this.fillDirection=[1,1];
						//this.fillDirection=[1];
						break;
						//ret="横折提";
					case "k":
						this.fillDirection=[0,1,0];
						break;
						//ret="弯钩";
					case "l":
						this.fillDirection=[1,3];
						break;
						//ret="斜钩";
					
					case "u":
						this.fillDirection=[0,3];
						break;
						//ret="竖弯钩";
					
						
					case "f":
						//ret="横钩";
						this.fillDirection=[0,1];
						break;
						
					case "s":
							this.fillDirection=[0,1,0,1];
							//ret ="横折折折";
							break;
							
					case "o":
							this.fillDirection=[0,1,0,3];
							break;
							//ret="横折折勾";							
					case "p":
							this.fillDirection=[0,1,1,2];
							break;
					case "v":
						this.fillDirection=[0,1,0,2];
						//ret="横撇弯钩";乙
						break;
					case "t":
						this.fillDirection=[1,0,1];
						//ret="竖折撇";
						break;
					case "n"://力
						this.fillDirection=[0,1,2];
						break;
						//ret="横折横折";
					
							
					
							
					case "x"://
							this.fillDirection=[0,1,3];
							break;
					case "y":
						this.fillDirection=[0,1,1];
						break;
					
						
				}
				return this.fillDirection;
			}
			
		}
	}